<?php
/**
 * 后台会员中心管理
 * @author cjli
 *
 */
class WorldcupAction extends AdminAction
{
	public function _initialize()
	{
		parent::_initialize();
	}
//世界杯首页
	public function index(){
	global $user;
	$where = array();
	if(isset($_POST['search'])){
		if(isset($_POST['country']) && $_POST['country']){
		$where['country'] = array('like', '%'.trim($_POST['country']).'%');
		}
	}
		$pageRows = 10;
		$worldup_db = D("worldup");
		$count = $worldup_db->count();
		import("ORG.Util.Page");
		$Page = new Page($count,$pageRows);
		$pageShow = $Page->show();
		$worldup_db->limit($Page->firstRow.','.$Page->listRows);
		$worldup_db->where($where);
		//查询用户邮箱
		$worldup_info = $worldup_db->table('worldup world,users users')->order('time DESC')->where(array('world.user_id=users.id'))->select();
		$this->assign('pageShow', $pageShow);
		$this->assign('worldup_info',$worldup_info);
	$this->display('index');
	}
}